package com.fly.show.notepad.action;
//ExitAction.java

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;

import com.fly.show.notepad.MainWindow;

public class ExitAction extends Action
{
    public ExitAction()
    {
        super();
        setText("退出(&E)");
        setToolTipText("退出系统");
        setImageDescriptor(ImageDescriptor.createFromFile(NewAction.class, "icons\\exit.gif"));
    }
    
    @Override
    public void run()
    {
        MainWindow.getApp().close();
    }
}